table.insert(itemActions,
	function(item, action)
		-- RARE jewels
		-- see: dir .. "readme.txt" for information regarding these variables
		-- To keep ALL jewels, change local identify = false
		local priority = 7
		local identify = true
		local dump = true

		-- rare jewel functions not written yet. This checks against magic\jewels.lua for what to keep
		if not (item.quality == ItemQuality.Rare and item.baseItem.code == "jew") then
			return false
		elseif action == aPICK and (not item.flags.Identified or isGoodMagicJewel(item)) then
			return priority
		elseif action == aIDENT then
			return identify
		elseif action == aSELL and item.flags.Identified and not isGoodMagicJewel(item) then
			return true
		elseif action == aDUMP and item.flags.Identified and not isGoodMagicJewel(item) then
			return dump
		end

		return false
	end
)